package com.iuie.ns.web.tags;

import java.io.IOException;

import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.SimpleTagSupport;

import com.iuie.ns.web.beans.DropViewVO;

/**
 * @desc view drop 
 * @createTime 2017年7月24日 下午4:18:28
 * @author iuie
 */
public class DropViewTag extends SimpleTagSupport {
    
    private String title;
    
    private String template;
    
    private String view;
    
    private String name;
    
    private String onClick;
    
    private Float size;
    
    @Override
    public void doTag() throws JspException, IOException {
        DropViewVO item = new DropViewVO(name, title, template, view, onClick, size);
        DropListViewTag parent = (DropListViewTag) getParent();
        parent.getDropItems().put(name, item);
    }

    public String getTitle() {
        return title;
    }
    public void setTitle(String title) {
        this.title = title;
    }
    public String getTemplate() {
        return template;
    }
    public void setTemplate(String template) {
        this.template = template;
    }
    public String getView() {
        return view;
    }
    public void setView(String view) {
        this.view = view;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public String getOnClick() {
        return onClick;
    }
    public void setOnClick(String onClick) {
        this.onClick = onClick;
    }
    public Float getSize() {
        return size;
    }
    public void setSize(Float size) {
        this.size = size;
    }
}
